package com.zx.mes.hyl.util;

import org.activiti.engine.*;

/**
 * 工作流各种engine获取
 * @author hyl
 * @date 2018-1-25
 */
public class ProcessEngineUtil {
    /**
     * 获取默认的流程引擎实例  会自动读取activiti.cfg.xml文件
     */
    public static  ProcessEngine processEngine= ProcessEngines.getDefaultProcessEngine();

    public static  RuntimeService runtimeService = processEngine.getRuntimeService();
    public static  RepositoryService repositoryService = processEngine.getRepositoryService();
    public static  TaskService taskService = processEngine.getTaskService();
    public static  ManagementService managementService = processEngine.getManagementService();
    public static  IdentityService identityService = processEngine.getIdentityService();
    public static  HistoryService historyService = processEngine.getHistoryService();
    public static  FormService formService = processEngine.getFormService();
    public static  DynamicBpmnService dynamicBpmnService = processEngine.getDynamicBpmnService();

}
